<script type="text/javascript" charset="utf-8">
	/* Global var for counter */
	
	$(document).ready(function() {
		$('#example').dataTable();
	} );
</script>


<!-- /.section, /#navigation -->
<div id="main-wrapper">
  <div class="clearfix with-navigation" id="main">
    <div class="column" id="content">
      <div class="section">
      		<!--{$htmlErrMsg}-->
        <div class="tabs">
          <ul class="tabs primary clearfix">
          
          <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_MEMBER_ADMIN) }-->
            <li >
              <a href="<!--{$smarty.const.HTTP_URL}-->mypage/index.php">
                <span class="tab">members Management</span>
              </a>
            </li>
           <!--{/if}-->
           
           <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_NEWS_ADMIN) }-->
            <li  class="active">
              <a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php?mode=showNewslist"  class="active">
                <span class="tab">Announcement/even Management</span>
              </a>
            </li>
            <!--{/if}-->
            
            <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_CONFERENCE_ADMIN) }-->
            <li>
              <a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php" >
                <span class="tab">conference Management</span>
              </a>
            </li>
            <!--{/if}-->
            
            <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_ELECT_ADMIN) }-->
             <li>
              <a href="<!--{$smarty.const.HTTP_URL}-->elect/elect.php">
                <span class="tab">elect Management</span>
              </a>
            </li>
            <!--{/if}-->
            
            <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN) }-->
            <li>
              <a href="<!--{$smarty.const.HTTP_URL}-->pay/show_payment_details.php">
                <span class="tab">payment Management</span>
              </a>
            </li>
            
            <!--{/if}-->
          </ul>
        </div>
      <div class="tabs" style="margin-top:10px;">
          <ul class="tabs primary clearfix">
            <li class="active">
              <a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php?mode=showNewslist"  class="active">
                <span class="tab">News List</span>
              </a>
            </li>
            <li >
              <a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php" >
                <span class="tab">News Publish</span>
              </a>
            </li>
          </ul>
        </div>
      <div id="content-area">
          <form action="" method="post" id="user-register" >
          <input type="hidden" name="mode" id="mode" value="confirm" />
          <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
          	<div style="height: 20px" id="container" ></div>
            <div>
               		<div id="container" >
					<div id="demo">
						<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
							<thead>
								<tr>
									<th>ID</th>
									<th>Title </th>
									<th>Publisher</th>
									<th>Date</th>
									<th>Status</th>
									<th>Edit</th>
								</tr>
							</thead>
							<tbody>
							<!--{section name=cnt loop=$newsInfolist}-->
								<tr>
									<td><!--{$newsInfolist[cnt].id|escape}--></a></td>
									<td><a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php?mode=showNews&id=<!--{$newsInfolist[cnt].id|escape}-->">
										<!--{$newsInfolist[cnt].title|escape}-->
										</a>
									</td>
									<td><!--{$newsInfolist[cnt].publisher|escape}--></td>
									<td><!--{$newsInfolist[cnt].publish_date|escape}--></td>
									<td><!--{$newsInfolist[cnt].status|escape}--></td>
									<td>
										<a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php?mode=editNews&id=<!--{$newsInfolist[cnt].id|escape}-->">
											Edit&nbsp;
										</a>
										<a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php?mode=deleteNews&id=<!--{$newsInfolist[cnt].id|escape}-->">
											Delete
										</a> 
									</td>
								</tr>
							<!--{/section}-->
							</tbody>
						</table>
					</div>
				</div>
            </div>
          </form>
        </div>
      
    </div>
    <!-- /.section, /#content -->
  </div>
</div>
<!-- /#main, /#main-wrapper -->
